package com.zgjkhis.modules.system.service.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName Drug
 * @Deacription 有效期提醒
 * @Author yzq
 * @Date 2021/6/24 9:52
 * @Version 1.0
 **/
@Data
public class DrugRemainDto implements Serializable {

    @ApiModelProperty(value = "入库详情id")
    private Long id;
    @ApiModelProperty(value = "药品id")
    private Long drugId;
    @ApiModelProperty(value = "药品名称")
    private String drugName;
    @ApiModelProperty(value = "库位号")
    private String drugNo;
    @ApiModelProperty(value = "生产工厂")
    private String drugManufactor;
    @ApiModelProperty(value = "规格")
    private String drugSpec;
    @ApiModelProperty(value = "入库方式1：平台采购，2：退货入库，3：报溢，4：挑拨入库，5：赠品入库，6：普通入库(默认入库方式)，7：盘点入库")
    private String wareHousingType;
    @ApiModelProperty(value = "批次号")
    private String batchNo;
    @ApiModelProperty(value = "有效期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date termOfValidity;
    @ApiModelProperty(value = "剩余数量")
    private Integer leftCount;
    @ApiModelProperty(value = "包装单位")
    private String packageUnit;

    @ApiModelProperty(value = "折扣价")
    private BigDecimal costPrice;
    @ApiModelProperty(value = "成本价")
    private BigDecimal selfPrice;
    @ApiModelProperty(value = "成本价")
    private BigDecimal redPun;
    @ApiModelProperty(value = "零售价")
    private BigDecimal salePrice;
    @ApiModelProperty(value = "药品分类")
    private Integer drugType;

}
